<%@ page import="registerallocator.Historico" %>



<div class="fieldcontain ${hasErrors(bean: historicoInstance, field: 'aluno', 'error')} required">
	<label for="aluno">
		<g:message code="historico.aluno.label" default="Aluno" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="aluno" name="aluno.id" from="${registerallocator.Aluno.list()}" optionKey="id" required="" value="${historicoInstance?.aluno?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: historicoInstance, field: 'disciplinas', 'error')} ">
	<label for="disciplinas">
		<g:message code="historico.disciplinas.label" default="Disciplinas" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${historicoInstance?.disciplinas?}" var="d">
    <li><g:link controller="disciplina" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="disciplina" action="create" params="['historico.id': historicoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'disciplina.label', default: 'Disciplina')])}</g:link>
</li>
</ul>

</div>

